import java.util.*;

public class Pingpong {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()) {
            String[] strs = s.nextLine().split("<br/>");
            for(int i = 0; i < strs.length; i++) {
                String[] strs1 = strs[i].split(" ");
                char[] chars1 = strs1[0].toCharArray();
                char[] chars2 = strs1[1].toCharArray();
                Map<Character,Integer> map = new HashMap<>();
                for(int j = 0 ; j < chars1.length; j ++) {
                    if(map.containsKey(chars1[j])) {
                        map.put(chars1[j],map.get(chars1[j]) + 1);
                    }else {
                        map.put(chars1[j],1);
                    }
                }
                boolean b = false;
                for(int j = 0; j < chars2.length; j++) {
                    if(!map.containsKey(chars2[j]) || map.get(chars2[j]) == 0) {
                        System.out.println("No");
                        b = true;
                        break;
                    }else {
                        map.put(chars2[j],map.get(chars2[j]) - 1);
                    }
                }
                if(b == false) System.out.println("Yes");
            }
        }
    }
}

